package com.aphrodite.io.sip.net;

/**
 * Listener for TcpConnection events.
 */
public interface TcpConnectionListener {
	/** When TcpConnection terminates. */
	public void onConnectionTerminated(TcpConnection tcp_conn, Exception error);

	/** When new data is received through the TcpConnection. */
	public void onReceivedData(TcpConnection tcp_conn, byte[] data, int len);
}